package com.power.project.model.bo;

import com.power.project.model.dto.UserDepartDTO;
import com.power.project.model.dto.UserTagDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author mrzhao
 * @CreateDate 2024/6/26 10:17
 * @Desc TODO
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserSaveBO {

    @ApiModelProperty(value = "账号，成员标识，全局唯一")
    @NotNull
    @NotEmpty
    private String userId;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "用户名称")
    @NotNull
    @NotEmpty
    private String name;

    @ApiModelProperty(value = "用户手机号")
    private String mobile;

    @ApiModelProperty(value = "主部门 ww_depart.departid")
    @NotNull
    @NotEmpty
    private String mainDepartId;

    @ApiModelProperty(value = "租户Id")
    @NotNull
    @NotEmpty
    private String tenantId;

    /**
     * 部门列表，包括是否为负责人
     */
    private List<UserDepartDTO> departList;
    /**
     * 标签列表
     */
    private List<UserTagDTO> tagList;
}
